<?php
namespace Common\Model;

use Common\Model\CommonModel;

class TaocaitouModel extends CommonModel
{
    //自动验证
    protected $_validate = [
        //array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
        //['content', 'require', '内容不能为空', 1, 'regex', CommonModel:: MODEL_BOTH],
    ];

    protected function _before_write(&$data)
    {
        parent::_before_write($data);
    }
}